/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.SanPhamDAO;
import com.miracleteam.miracle.dao.daoImpl.SanPhamDAOImpl;
import com.miracleteam.miracle.entities.Sanpham;
import com.miracleteam.miracle.services.SanPhamService;
import java.util.List;

/**
 *
 * @author DangKhoa
 */
public class SanPhamServiceImpl implements SanPhamService{
    public Sanpham LaySanPhamChoMatHang(String maMH)
    {
        SanPhamDAO spDao=new SanPhamDAOImpl();
        return spDao.LaySanPhamChoMatHang(maMH);
    }
      public Sanpham LaySanPham(String maSP)
      {
            SanPhamDAO spDao=new SanPhamDAOImpl();
        return spDao.LaySanPham(maSP);
      }
           public String LayTenSanPham(String maSP){
                SanPhamDAO spDao=new SanPhamDAOImpl();
                return spDao.LayTenSanPham(maSP);
           }
              public List LaySPTheoDanhMuc(String MaDM) 
              {
                  SanPhamDAO spDao=new SanPhamDAOImpl();
                  return spDao.LaySPTheoDanhMuc(MaDM);
              }
              public List LayDSSanPham() {
                  SanPhamDAO spDao=new SanPhamDAOImpl();
                  return spDao.LayDSSanPham();
              }
}
